package com.sk.sqd;

import org.springframework.stereotype.Service;

/**
 * 具体同事 A
 */
@Service("colleagueA")
public class ConcreteColleagueA implements Colleague {

    public void send(String message, Mediator mediator) {
        mediator.sendMessage(message, this);
    }

    public void notify(String message) {
        System.out.println("ConcreteColleagueA 得到消息 " + message);
    }

}
